<template>
    <div class="container-fluid mt-4">
        <div class="row">
            <div class="col-md">
                <div class="card card-users">
                    <div class="card-body">

                        <div class="card-users-img">
                            <div class="img-table">
                                <img class="card-img mx-auto" src="../../images/icon_user.png"/>
                            </div>
                        </div>
                        <span class="card-info">1用户</span>
                        <p class="card-info-detail">您有 1 用户 在数据库中。点击下面的按钮查看所有用户。</p>

                        <Button to="/users" type="info" size="default">查看所有用户</Button>
                    </div>
                </div>
            </div>

            <div class="col-md">
                <div class="card card-posts">

                    <div class="card-body">
                        <div class="card-users-img">
                            <div class="img-table">
                                <img class="card-img" src="../../images/icon_posts.png"/>
                            </div>
                        </div>
                        <span class="card-info">3文章</span>
                        <p class="card-info-detail">您有 4 文章 在数据库中。点击下面的按钮查看所有文章。</p>

                        <Button to="/posts" type="info" size="default">查看所有贴子</Button>
                    </div>
                </div>
            </div>

            <div class="col-md">
                <div class="card card-pages">
                    <div class="card-body">
                        <div class="card-users-img">
                            <div class="img-table">
                                <img class="card-img" src="../../images/icon_pages.png"/>
                            </div>
                        </div>

                        <span class="card-info">1页面</span>
                        <p class="card-info-detail">您有 1 页面 在数据库中。点击下面的按钮查看所有页面。</p>

                        <Button to="/pages" type="info" size="default">查看所有页面</Button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Dashboard"
    }
</script>

<style scoped>
    .card-body {
        color: white;
        text-align: center;
    }

    .card-users-img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, .5);
        text-align: center;
        margin-top: 20px !important;
    }

    .img-table {
        width:100px;
        height:100px;
        vertical-align:middle;
        display:table-cell;
    }
    .card-users-img img {
        width: 60px;
    }

    .card-posts {
        height: 360px;
        background-size: cover;
        background: url("../../images/02.jpg") no-repeat center center;
    }

    .card-users {

        height: 360px;
        background-size: cover;
        background: url("../../images/01.jpg") no-repeat center center;
    }

    .card-pages {

        height: 360px;
        background-size: cover;
        background: url("../../images/03.jpg") no-repeat center center;
    }

    .card-info {
        font-size: 24px;
        margin: 10px 0;
    }

    .card-info-detail {
        font-size: 15px;
    }

</style>
